<?php
namespace app\admin\controller;

use app\BaseController;
use think\Exception;
use think\exception\HttpException;
use think\facade\Env;

class Index extends BaseController
{
    public function index()
    {

//        $result = [
//            'status'=>1,
//            'message'=>'请求成功',
//            'data'=>null
//        ];

        //$i = 1/0;


        //throw new HttpException(500, "fsdfdsf");


        $header = [
            'token'=>$this->request->name
        ];

        //return json($result, 200, $header);
        return show(1, '请求成功', null,200, $header);
    }
}
